package save;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;


public class PerformanceMaker {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Performance p = new Performance();
		
		
		p.addEvent(new ImageNowEvent(0, new File("images/HotAirBalloon.jpg"), 24));
		
		p.addEvent(new LaunchEvent(20, 0, 10, "quads.DrumQuad"));
		
		p.addEvent(new ImageNextEvent(30, new File("images/masterchief.jpg"), 24));
		
		p.addEvent(new TransitionEvent(200));
		
		p.addEvent(new LaunchEvent(250, 10, 15, "quads.LoopQuad"));
		
		p.addEvent(new LaunchEvent(260, 10, 15, "quads.DownQuad"));
		
		//p.addEvent(new LaunchEvent(260, 10, 17, "quads.GranQuad"));
		
		File f = new File("performances/Performance1.per");
		
		 
		try {
			FileOutputStream fos = new FileOutputStream(f);
			ObjectOutputStream oos = new ObjectOutputStream(fos);
			oos.writeObject(p);
			oos.close();
			
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		

	}

}
